package com.sailfish.mq.rocket;

import io.github.majusko.pulsar.annotation.PulsarConsumer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author XIAXINYU3
 * @date 2021/6/18
 */
@Slf4j
@Component
public class PulsarRealConsumer {
    @PulsarConsumer(topic = "bootTopic", clazz = MessageDto.class)
    public void consume(MessageDto message) {
        log.info("PulsarRealConsumer consume id:{},content:{}", message.getId(), message.getName());
    }
}